{extend name="base" /}
{block name="body"}
<div class="layui-card">
    <div class="layui-card-body">
        <form action="{:request()->url()}" class="layui-form" method="post">
            <div class="layui-form-item">
                <label class="layui-form-label">提醒日期</label>
                <div class="layui-input-inline">
                    <input type="text" name="datetime" class="layui-input" id="datetime" value="{$data.datetime|default=date('Y-m-d')}" placeholder="" autocomplete="off" lay-verify="required">
                </div>
                <div class="layui-form-mid layui-word-aux">请输入需要提醒的日期</div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">提醒类型</label>
                <div class="layui-input-inline">
                    <select name="type" lay-search lay-verify="required">
                        <option value="">请选择</option>
                        {foreach name="notice" item="v"}
                        <option value="{$v.id}" {if condition="isset($data) and $data.type eq $v.id"}selected="selected"{/if}>{$v.name}</option>
                        {/foreach}
                    </select>
                </div>
                <div class="layui-form-mid layui-word-aux">提醒内容的类型</div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">合同备注</label>
                <div class="layui-input-block">
                    <textarea name="remark" class="layui-textarea">{$data.remark|default=''}</textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-filter="i" lay-submit="">保存</button>
                    <button class="layui-btn layui-btn-primary" type="reset">重置</button>
                </div>
            </div>
        </form>
    </div>
</div>
{/block}
{block name="js"}
<script>
    laydate.render({
        elem: '#datetime'
        ,trigger:'click'
    });
</script>
{/block}